package com.atguigu.servlet;

import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;
import java.io.PrintWriter;

@WebServlet(name = "Servlet12Response", urlPatterns = "/Servlet12Response")
public class Servlet12Response extends HttpServlet {

    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        resp.setContentType("text/html;charset=utf-8");
        PrintWriter writer = resp.getWriter();
        writer.write("导弹打，大炮轰，白磷洗地坦克冲<br/>");
        writer.write("轰二零，歼三五，徐进弹幕打本土<br/>");
        writer.write("无人机，大航母，东风快递使劲杵<br/>");
        writer.write("电磁枪，粒子炮，白帝玄女继续舞<br/>");
    }
}
